* {
    box-sizing: border-box;
}
.row:after {
    content: "";
    clear: both;
    display: block;
}
[class*="col-"] {
    float: left;
    padding: 15px;
}
html,body{
    font-family: "Times New Roman", sans-serif;
    height: 100%;
    margin: 0;
}
body {
    display: flex;
    flex-direction: column;
}
.content{
    flex:1;
}
/* Header css */
.header {
    text-align: center;
    padding: 15px;
    color: #24325f;
    font-size: 1.2em;
    background-image: url('../images/logo2.png');
    background-color: rgb(251,249,237);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-position: calc(85% - 60px) center;
    background-repeat: no-repeat; 
    background-size: contain;
}
/* menu css*/
.loginOutBtn{
    background-color: rgb(239,253,240);
    margin-right: 18px;
  }
.createGroup{
  background-color: rgb(0,120,212,0.8);
  border: 0;
  color: rgb(255,255,255);
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Times New Roman", serif;
}
.createGroup:hover{
  background-color: rgb(0,120,212);
}
.Btn{
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 0;
    margin-bottom: 10px;
    font-family: "Times New Roman", sans-serif;
    width: 150px;
    height: 30px;
}
.Btn:hover{
    background-color: rgb(210, 210, 210,0.2);
}
.Btn2{
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 0;
    margin-bottom: 10px;
    font-family: "Times New Roman", sans-serif;
    width: 200px;
    height: 30px;
}
.Btn2:hover{
    background-color: rgba(210, 210, 210,0.2);
}
.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
  .menu li {
    padding: 8px;
    margin-bottom: 7px;
    background-color:rgb(254,239,208,0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-align: center;
}
  .menu li:hover {
    background-color: rgba(210, 210, 210,0.2);
}

/* This is mobile first approach */
/* For mobile phones: */
[class*="col-"] {
  width: 100%;
}
/* Filter */
.filter-container{
    background-color:rgb(254,239,208,0.8);
}
.filterBtn{
    background-color:rgb(255, 255, 255);
    border:0;
    font-family: "Times New Roman",serif;
    width: 200px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.1);
}
.filterBtn:hover {
    background-color: rgb(230,245,250);
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  /* For tablets: */
  .col-m-3 {
    width: 25%;
  }
  .col-m-9 {
    width: 75%;
  }
  .col-m-12 {
    width: 100%;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  /* For desktop: */
  .col-2 {
    width: 16.66%;
  }
  .col-3 {
    width: 25%;
  }
  .col-7 {
    width: 58.33%;
  }
}

.search-container {
    width: 100%;
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

#searchInput {
    flex: 1;
    max-width: 400px;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

#searchButton {
    width: 100px;
    padding: 8px 12px;
    background-color: rgb(0,120,212,0.8);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

#searchButton:hover {
    background-color: rgb(0,120,212);
}

/* 操作行样式 */
.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 创建群组按钮样式 */
.createGroup {
    padding: 4px 10px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    height: 28px;
    line-height: 20px;
}

.createGroup:hover {
    background-color: #40a9ff;
}

/* 筛选器样式 */
.filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.filter-options input[type="checkbox"] {
    cursor: pointer;
}

.filterBtn {
    padding: 6px 12px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* 按钮悬停效果 */
.createGroup:hover,
.filterBtn:hover {
    background-color: #40a9ff;
}

/*group*/
table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}
th{
    text-align: center;
    background-color: rgb(251,249,237);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
td {
    text-align: center;
}
tr:nth-of-type(even) {
  background-color:rgb(254,239,208,0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
tr:nth-of-type(odd) {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.join-btn, .exit-btn {
    padding: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Times New Roman", serif;
    width: 70px;
    margin: 5px;
}

.join-btn {
    background-color: #4CAF50;
    color: white;
}

.exit-btn {
    background-color: #f44336;
    color: white;
}

.join-btn:hover {
    background-color: #45a049;
}

.exit-btn:hover {
    background-color: #da190b;
}
.edit-btn{
  background-color: rgb(0,120,212,0.8);
  color: rgb(255,255,255);
  border: none;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Times New Roman", serif;
  width: 65px;
}
.del-btn{
  border: none;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Times New Roman", serif;
  width: 65px;
}
.edit-btn:hover{
  background-color: rgb(0,120,212);
}
.del-btn:hover{
  background-color: rgb(0,120,212);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 4px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

/* 表单样式 */
.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal label {
    font-weight: 500;
    margin-bottom: 5px;
}

.modal input,
.modal select,
.modal textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.modal textarea {
    min-height: 100px;
    resize: vertical;
}

.modal button[type="submit"] {
    background-color: #1890ff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal button[type="submit"]:hover {
    background-color: #40a9ff;
}

/* 创建群组按钮样式 */
.createGroup {
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.createGroup:hover {
    background-color: #40a9ff;
}

/* footer css */
footer{
    text-align: center;
    font-size: 0.8em;
    background-color: rgb(251,249,237);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    bottom: 0;
}

/* 顶部操作区域样式 */
.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}


#searchInput {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  width: 100%;
  max-width: none;
}

/* 筛选器样式 */
.filter-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#typeFilter {
    padding: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    min-width: 120px;
}

.filterBtn {
    padding: 8px 16px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filterBtn:hover {
    background-color: #40a9ff;
}

/* 表格容器样式 */
.table-container {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 表格样式 */
#groupTable {
    width: 100%;
    border-collapse: collapse;
}

#groupTable th,
#groupTable td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

#groupTable th {
    background-color: #fafafa;
    font-weight: 500;
}

/* 按钮样式 */
.join-btn, .exit-btn, .del-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
}

.join-btn {
    background-color: #52c41a;
    color: white;
}

.join-btn:hover {
    background-color: #73d13d;
}

.exit-btn {
    background-color: #ff4d4f;
    color: white;
}

.exit-btn:hover {
    background-color: #ff7875;
}

.edit-btn {
    background-color: #1890ff;
    color: white;
}

.edit-btn:hover {
    background-color: #40a9ff;
}

.del-btn {
    background-color: #ff4d4f;
    color: white;
    margin-top: 5px;
}

.del-btn:hover {
    background-color: #ff7875;
}

/* Create Group 按钮样式 */
.createGroup {
    padding: 4px 12px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 搜索区域样式 */
.search-section {
    width: 100%;
}
